<HTML><HEAD><TITLE>set_pool_item(+Pool, +Item)</TITLE>
</HEAD><BODY>[ <A HREF="index.html">library(constraint_pools)</A> | <A HREF="../../index.html">Reference Manual</A> | <A HREF="../../fullindex.html">Alphabetic Index</A> ]
<H1>set_pool_item(+Pool, +Item)</H1>
Associate a term Item with the pool Pool
<DL>
<DT><EM>Pool</EM></DT>
<DD>Atom
</DD>
<DT><EM>Item</EM></DT>
<DD>Arbitrary term
</DD>
</DL>
<H2>Description</H2>

    An arbitrary term (for example a solver handle) is associated with the
    pool Pool, in order to be retrieved later using get_pool_item/2.
    The modification to the pool is backtrackable.
    
<H2>Examples</H2>
<PRE>    ?- create_constraint_pool(p, 0, []).
    Yes (0.08s cpu)

    ?- set_pool_item(p, sample_item), get_pool_item(p,X).
    X = sample_item
    Yes (0.00s cpu)
    </PRE>
<H2>See Also</H2>
<A HREF="../../lib/constraint_pools/create_constraint_pool-3.html">create_constraint_pool / 3</A>, <A HREF="../../lib/constraint_pools/get_pool_item-2.html">get_pool_item / 2</A>
</BODY></HTML>
